import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
// 引入图片导航栏
import imgNav from './components/imgNav.vue'
import { createPinia } from 'pinia'
const pinia = createPinia();
const app = createApp(App)
// 注册全局图片导航栏
app.component('imgNav',imgNav);
app.use(pinia);
app.use(router).use(ElementPlus).mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}